<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0046)http://debreu.colorado.edu/gtap5/install5.html -->
<HTML><HEAD><TITLE>GTAP5inGAMS: Installation Notes</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY><FONT color=#0000cd size=5 font>GTAP<FONT color=red>5</FONT>inGAMS: 
Installation Instructions</FONT> 
<HR>

<P>
<H2>Content</H2><A 
href="http://debreu.colorado.edu/gtap5/install5.html#lab1">Description</A><BR><A 
href="http://debreu.colorado.edu/gtap5/install5.html#lab2">System 
Requirements</A><BR><A 
href="http://debreu.colorado.edu/gtap5/install5.html#lab3">Download 
Instructions</A><BR><A 
href="http://debreu.colorado.edu/gtap5/install5.html#lab4">Installation</A><BR><A 
href="http://debreu.colorado.edu/gtap5/install5.html#lab5">GTAP5inGAMS 
Dataset</A><BR><A 
href="http://debreu.colorado.edu/gtap5/install5.html#lab6">GTAP5-EG 
Dataset</A><BR><A 
href="http://debreu.colorado.edu/gtap5/install5.html#lab7">Aggregated 
Datasets</A><BR><A 
href="http://debreu.colorado.edu/gtap5/install5.html#lab8">Aggregation 
Routine</A><BR><A href="http://debreu.colorado.edu/gtap5/index.html">Back to 
GTAP5inGAMS Homepage</A> 
<P><BR>
<HR>
<B><I><A name=lab1>Description</B></I> 
<P>This document describes an installation procedure of the GTAP5inGAMS package 
(prerelease#3). There are two versions of the GTAP datasets in the package: the 
full versions (the file <B>gtap001.zip</B> for the GTAP5inGAMS and the file 
<B>aspen5.zip</B> for the GTAP5-EG) and the aggregated versions (the file 
<B>gtap5_small.zip</B> for the GTAP5inGAMS and the file <B>aspen5_small.zip</B> 
for the GTAP5-EG). The full versions of the datasets have a restricted 
distribution. In order to use the full versions, a modeller needs to obtain the 
standard GTAP5 data file <B>gsddat.har</B>. The instructions for obtaining the 
GTAP data can be found at <A href="http://www.agecon.purdue.edu/gtap">the GTAP 
Homepage </A>. For testing purposes, aggregated versions of the GTAP5inGAMS and 
GTAP5-EG datasets are provided with the GTAP5inGAMS package. The GTAP5inGAMS 
package with the aggregated datasets can be downloaded <A 
href="http://debreu.colorado.edu/gtap5/gtap5gams.zip">here </A><B><I>(free of 
charge)</B></I>. A modeller can test the aggregated datasets by running 
illustrative models. The modeller can change the models to suit his specific 
purpose because he has a full access to the code of the build routines and the 
models. 
<P>
<HR>
<B><I><A name=lab2>System Requirements </B></I>
<P>In order to use the GTAP5inGAMS package, you need to have the following GAMS 
system components: 
<UL>
  <LI>GAMS compiler version 2.50 
  <LI>PATH complementarity solver 
  <LI>MINOS5 nonlinear optimizer and nonlinear system solver (for creating the 
  GTAP-EG dataset and running NLP models) 
  <LI>LIBINCLUDE Tools for Writing GAMS-Readable Data Files <B>(optional)</B>. 
  <BR><I>(The GTAP5inGAMS build routine and the model use the LIBINCLUDE tools 
  located in the INCLIB directory of the GTAP5inGAMS distribution package. In 
  order to be able to use the tools in your own applications, you need to 
  install them into GAMS directory. The latest version of the LIBINCLUDE tools 
  is distributed as a file <B>inclib.pck</B>. To install it on your computer 
  download the file from <A 
  href="http://debreu.colorado.edu/inclib/inclib.pck">http://debreu.colorado.edu/inclib/inclib.pck</A>into 
  your GAMS system directory, and run GAMSINST. A description of 
  <B>inclib.pck</B> can be found at <A 
  href="http://debreu.colorado.edu/inclib/gams2txt.htm">http://debreu.colorado.edu/inclib/gams2txt.htm</A>)</I>. 

  <LI>A Pentium computer running Windows 95, NT, or 2000 with more than 100 MB 
  of free disk space. </LI></UL>
<P>
<HR>
<B><I><A name=lab3>Download Instructions </B></I>
<P>The GAMS5inGAMS package is distributed in a zip archive (a file 
<B>gtap5gams.zip</B>). You can download it from <A 
href="http://debreu.colorado.edu/gtap5/gtap5gams.zip">http://debreu.colorado.edu/gtap5/gtap5gams.zip</A>. 
The archive has the directory structure presented below. 
<P>
<P><A name=tth_tAb1></A>
<CENTER>Table 1: Structure of the archive GTAP5GAMS.ZIP</CENTER>
<CENTER>
<P>
<TABLE border=1>
  <TBODY>
  <TR>
    <TD align=middle>Directory </TD>
    <TD align=middle>Purpose </TD>
    <TD align=middle>File </TD>
    <TD align=middle>Purpose </TD>
  <TR>
    <TD align=middle>BUILD </TD>
    <TD align=middle>build </TD>
    <TD align=middle>energy.bat </TD>
    <TD align=middle>Batch file to build the GTAP-EG dataset </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle>dataset </TD>
    <TD align=middle>build.bat </TD>
    <TD align=middle>Batch file to build the GTAPinGAMS dataset </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>chkdata.bat </TD>
    <TD align=middle>Check benchmark data </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>chkdata.gms </TD>
    <TD align=middle>Check benchmark data </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>chkeq.gms </TD>
    <TD align=middle>Check equilibrium </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>filter.gms </TD>
    <TD align=middle>Filter data </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>gtapaggr.bat </TD>
    <TD align=middle>Aggregation </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>gtapaggr.gms </TD>
    <TD align=middle>Aggregation GAMS file</TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>gtapsets.gms </TD>
    <TD align=middle>Make sets for aggregation </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>ene.gms </TD>
    <TD align=middle>Calibration </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>ieo.dat </TD>
    <TD align=middle>IEO Projections Data</TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>ieodata.gms </TD>
    <TD align=middle>IEO Projections </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>impose.bat </TD>
    <TD align=middle>New dataset creation </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>impose.gms </TD>
    <TD align=middle>New dataset creation </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>recalib.gms </TD>
    <TD align=middle>Recalibration </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>regbal.gms </TD>
    <TD align=middle>Regional Balance </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>relabel.gms </TD>
    <TD align=middle>Relabel to GAMS format </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>seehar.exe </TD>
    <TD align=middle>Read HAR-file utility </TD>
  <TR>
    <TD align=middle>DATA </TD>
    <TD align=middle>initial and </TD>
    <TD align=middle>energy.dat </TD>
    <TD align=middle>Aggregated Energy Data </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle>resulting </TD>
    <TD align=middle>aspen5_small.zip </TD>
    <TD align=middle>13x8 GTAP-EG dataset </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle>data </TD>
    <TD align=middle>gtap5_small.zip </TD>
    <TD align=middle>10x10 GTAPinGAMS dataset </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>(gsddat.har) </TD>
    <TD align=middle>GTAP Data (not included) </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>(aspen5.zip) </TD>
    <TD align=middle>Created after running ASPEN.BAT </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>(gtap001.zip) </TD>
    <TD align=middle>Created after running BUILD.BAT </TD>
  <TR>
    <TD align=middle>DEFINES </TD>
    <TD align=middle>stores </TD>
    <TD align=middle>aspen5.map </TD>
    <TD align=middle>Full GTAP-EG mapping </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle>.set, .map, and .def </TD>
    <TD align=middle>aspen5.set </TD>
    <TD align=middle>Full GTAP-EG sets </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle>files </TD>
    <TD align=middle>aspen5_small.map </TD>
    <TD align=middle>13x8 GTAP-EG mapping </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>aspen5_small.set </TD>
    <TD align=middle>13x8 GTAP-EG sets </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>gtap5_small.map </TD>
    <TD align=middle>10x10 GTAPinGAMS sets </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>gtap5_small.set </TD>
    <TD align=middle>10x10 GTAPinGAMS sets </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>gtap.set </TD>
    <TD align=middle>GTAP4 sets </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>iea.map </TD>
    <TD align=middle>IEA-GTAP mapping </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>iea.set </TD>
    <TD align=middle>IEA-GTAP sets </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>notax.def </TD>
    <TD align=middle>New tax rates definitions </TD>
  <TR>
    <TD align=middle>INCLIB </TD>
    <TD align=middle>standard </TD>
    <TD align=middle>aggr.gms </TD>
    <TD align=middle>Aggregation </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle>GAMS </TD>
    <TD align=middle>checkset.gms </TD>
    <TD align=middle>Check set </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle>utilities </TD>
    <TD align=middle>chktarget.gms </TD>
    <TD align=middle>Check target </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>gams2har.gms </TD>
    <TD align=middle>Move to HAR format </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>gams2prm.gms </TD>
    <TD align=middle>Move to GAMS parameter </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>gams2tbl.gms </TD>
    <TD align=middle>Move to table </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>gams2txt.gms </TD>
    <TD align=middle>Move to text file </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>gdpreport.gms </TD>
    <TD align=middle>Report GDP </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>har2gams.gms </TD>
    <TD align=middle>Move from HAR format </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>mrtdata.gms </TD>
    <TD align=middle>GTAP parameters calculation </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>unzip.gms </TD>
    <TD align=middle>Call unzip </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>zip.gms </TD>
    <TD align=middle>Call zip</TD>
  <TR>
    <TD align=middle>MODELS </TD>
    <TD align=middle>Illustrative </TD>
    <TD align=middle>gtap-eg.gms </TD>
    <TD align=middle>The GTAP-EG Model </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle>models </TD>
    <TD align=middle>runall.bat </TD>
    <TD align=middle>Run all GTAPinGAMS Models </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>mrttest.gms </TD>
    <TD align=middle>Test all GTAPinGAMS Models </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>cnstest.gms </TD>
    <TD align=middle>Test CNS GTAPinGAMS Model </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>mcptest.gms </TD>
    <TD align=middle>Test MCP GTAPinGAMS Model </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>mgetest.gms </TD>
    <TD align=middle>Test MPSGE GTAPinGAMS Model </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>nlptest.gms </TD>
    <TD align=middle>Test NLP GTAPinGAMS Model </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>mrtcns.gms </TD>
    <TD align=middle>CNS GTAPinGAMS Model </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>mrtmcp.gms </TD>
    <TD align=middle>MCP GTAPinGAMS Model </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>mrtmge.gms </TD>
    <TD align=middle>MPSGE GTAPinGAMS Model </TD>
  <TR>
    <TD align=middle></TD>
    <TD align=middle></TD>
    <TD align=middle>mrtnlp.gms </TD>
    <TD align=middle>NLP GTAPinGAMS Model </TD></TR></TBODY></TABLE></CENTER>
<P>
<P>
<HR>
<B><I><A name=lab4>Installation </B></I>
<P>To install the GTAP5inGAMS package: 
<UL>
  <LI>Create a directory on your computer. Call it, let say, GTAP. 
  <LI>Download the file <A 
  href="http://debreu.colorado.edu/gtap/gtapgams.zip">gtap5gams.zip</A> into 
  that directory. 
  <LI>Unzip the file making sure that <A 
  href="http://debreu.colorado.edu/gtap5/install5.html#tth_tAb1">the archive's 
  directory structure</A> is preserved. The files from the ZIP archive can be 
  extracted by using <B>WinZip.exe</B> or <B>unzip.exe</B>. WinZip can be 
  downloaded from <A href="http://www.winzip.com/">http://www.winzip.com/</A>. 
  <LI>The GTAP5inGAMS package is ready to use with the aggregated datasets. They 
  are located in the <B>DATA</B> subdirectory. A description of the aggregated 
  datasets is given <A 
  href="http://debreu.colorado.edu/gtap5/install5.html#lab7">below </A>. 
  <LI>Both the GTAP5inGAMS and GTAP5-EG have two versions: full and aggregated. 
  In order to get the full versions, a user needs to run the build routines <A 
  href="http://debreu.colorado.edu/gtap5/install5.html#lab5"><B>BUILD.BAT</B></A> 
  and <A 
  href="http://debreu.colorado.edu/gtap5/install5.html#lab6"><B>ASPEN.BAT</B></A> 
  described below. </LI></UL>
<P>To create the full version of the GTAP5inGAMS dataset: 
<UL>
  <LI>Find where you have placed the unzipped GTAP5inGAMS package. 
  <LI>Place the file <B>gsddat.har</B> into the DATA subdirectory. 
  <LI>Open MS-DOS window. 
  <LI>Go to the BUILD subdirectory . 
  <LI>Type <B>build</B> in MS-DOS prompt and press <B>"Enter"</B> 
  <LI>For more information, read <A 
  href="http://debreu.colorado.edu/gtap5/install5.html#lab5">this section </A>. 
  </LI></UL>
<P>To create the full version of the GTAP5-EG dataset: 
<UL>
  <LI>Find where you have placed the unzipped GTAP5inGAMS package. 
  <LI>Place the file <B>gsddat.har</B> into the DATA subdirectory. 
  <LI>Open MS-DOS window. 
  <LI>Go to the BUILD subdirectory . 
  <LI>Type <B>energy</B> in MS-DOS prompt and press <B>"Enter"</B> 
  <LI>For more information, read <A 
  href="http://debreu.colorado.edu/gtap5/install5.html#lab6">this section </A>. 
  </LI></UL>
<P>
<HR>
<B><I><A name=lab5>The GTAP5inGAMS dataset (build routine BUILD.BAT) </B></I>
<P>The GTAP5inGAMS dataset is built on the standard GTAP5 database, which is not 
distributed freely. In order to construct the full GTAP datasets, a user needs 
to contact <A href="http://www.agecon.purdue.edu/gtap">GTAP </A>to obtain the 
GTAP5 dataset (the file <B>gsddat.har</B>). 
<P>The file <B>gsddat.har</B> should be placed into the <B>DATA</B> subdirectory 
of the GTAP5inGAMS package. To create the full version of the GTAP5inGAMS, a 
user needs to run <B>build.bat</B> file. For this, in MS-DOS prompt (make sure 
that you are connected to a proper directory) type <B>build</B> and press 
<B>Enter</B>. Run time on Pentium 500 is about 25 minutes (Make sure that GAMS 
is included in the PATH variable of your computer's MS-DOS. To check it, in 
MS-DOS prompt type <B>path</B> and press <B>Enter</B>). 
<P>The file <B>build.bat</B> is intended to: 
<UL>
  <LI>Read <B>gsddat.har</B> file. 
  <LI>Convert <B>gsddat.har</B> into <B>gtap.gms</B>. 
  <LI>Relabel and scale the data to create <B>gtap.zip</B>. 
  <LI>Filter and recalibrate the data to <B>gtap001.zip</B>. </LI></UL>Once you 
successfully run the BUILD routine, you can use the full GTAP5inGAMS dataset 
which is placed in the <B>DATA</B> subdirectory. Your computer may not have 
enough memory to run your models on the full dataset. Therefore, the aggregation 
routine <B>GTAPAGGR.BAT</B> <A 
href="http://debreu.colorado.edu/gtap5/install5.html#lab8">(described below) 
</A>can aggregate the original GTAP data into the smaller datasets. You can 
choose what aggregation is appropriate for studying your particular application. 

<P>
<HR>
<B><I><A name=lab6>The GTAP5-EG dataset (build routine ENERGY.BAT) </B></I>
<P>The GTAP5-EG dataset is built on the standard GTAP5 database and calibrated 
to energy quantity and price data. In order to construct the full GTAP5-EG 
dataset, a user needs to run <B>energy.bat</B> file. For this, In MS-DOS prompt, 
type <B>energy</B> and press <B>Enter</B>. Run time on Pentium 500 is about 3 
minutes. If the full version of the GTAP5inGAMS dataset has not been created 
yet, then the BUILD routine (described above) will be automatically called. 
<P>The file <B>energy.bat</B> is intended to: 
<UL>
  <LI>Aggregate <B>gtap001.zip</B> to a dataset compatible with the IEA data: 
  <B>iea.zip</B>. 
  <LI>Calibrate the GTAP and IEA energy data to create <B>gtapiea.zip</B>. 
  <LI>Relabel the energy commodities, translating <B>gtapiea.zip</B> to 
  <B>aspen5.zip</B>. 
  <LI>Delete work files. 
  <LI>Give to a user an option of creating the aggregated GTAP5-EG dataset 
  (aspen5_small.zip) and running an illustrative model. </LI></UL>
<P>Users can edit <B>energy.bat</B> to suit their specific applications. In 
particular, a pause option can be uncommented for every step to see all the 
stages of the dataset creation (To uncomment a <B>pause</B> command, delete a 
:(column) sign, i.e. change a line from <B>:pause</B> to <B>pause</B>.). The 
original build routine has a pause in one place only - before the aggregation 
and running the illustrative model. At this point, in MS-DOS window you'll see a 
message: 
<P><B><I>Aggregate to 13x8, include energy projections and create 
aspen_small.zip Will aggregate to aspen_small.zip: Press any key to continue . . 
. </B></I>
<P>If you press any key, then in addition to the full dataset an aggregated 
dataset will be created (a new file <B>aspen5_small.zip</B> will replace an old 
one) and an illustrative model will run on an aggregated data. If you press 
``Ctrl-C'', then the following message appears. 
<P><B><I>Terminate batch job (y/n)? </B></I>
<P>If you terminate the batch job at this time (by pressing ``y'' and then 
``Enter''), <B>energy.bat</B> will stop and only the full version of the 
GTAP5-EG dataset will be created and placed into <B>DATA</B> subdirectory under 
the name <B>aspen5.zip</B>. 
<P>In the process of building the dataset, several echo files are placed in the 
<B>BUILD</B> subdirectory: 
<UL>
  <LI>iea.ech - Report on economic activity by sector and region from GTAP data; 

  <LI>gtapiea.ech - Energy statistics; 
  <LI>aspen5.ech - Report on economic activity by sector and region from the 
  full GTAP-EG dataset; 
  <LI>aspen5_small.ech - Report on economic activity by sector and region from 
  the aggregated GTAP-EG dataset. </LI></UL>
<P>
<HR>
<B><I><A name=lab7>Aggregated datasets </B></I>
<P>The GTAP5inGAMS package contains the aggregated versions of the GTAP5inGAMS 
dataset and the GTAP5-EG dataset. They are provided for testing purposes. 
<P>A user can check the installation by running the models on the aggregated 
GTAP5inGAMS dataset (file <B>gtap5_small.zip</B>), which is located in the 
<B>DATA</B> subdirectory and ready to use. The <B>gtap5_small.zip</B> archive 
contains the data file <B>gtap5_small.gms</B>, and associated <B>SET</B> and 
<B>MAP</B> files. The aggregated GTAPinGAMS dataset has 10 sectors, 10 regions, 
and 5 factors of production. Aggregate regions in the model include the US, 
Japan, the EU and China, Other OECD, Former Soviet Union, Central European 
Associates, Other Asia, Mexico plus OPEC and Rest of World. Commodities in the 
dataset include the investment aggregate, five energy goods, metals-related 
industry, other energy-intensive industries, other manufactures and services. 
For more information, read the <A 
href="http://debreu.colorado.edu/gtap5/index.html">GTAP5inGAMS description</A>. 
<P>The <B>gtap5gams.zip</B> archive also contains an aggregated version of the 
GTAP5-EG dataset. It is located in <B>DATA</B> subdirectory and named 
<B>aspen5_small.zip</B>. The archive contains the data file 
<B>aspen5_small.gms</B>, and associated <B>SET</B> and <B>MAP</B> files. The 
aggregated dataset has 13 regions, 8 goods, and two primary factors. The 
identifiers for the aggregated GTAP5-EG dataset are contained in the <B>SET</B> 
file. For more information, read the <A 
href="http://debreu.colorado.edu/gtap5/index.html">GTAP5inGAMS description</A>. 
<P>
<HR>
<B><I><A name=lab8>The Aggregation Routine GTAPAGGR.BAT </B></I>
<P>Once you have built the initial GTAP5inGAMS or GTAP5-EG dataset, you can 
begin to think about a particular application and which aggregations of the 
original GTAP data would be appropriate for studying those issues. Typically it 
is useful to create two aggregations for any new model, one with a minimal 
number of regions and commodities and another with a larger number of 
dimensions. The small aggregation can then be used for model development. 
<P>The <B>gtapaggr.bat</B> program is used to aggregate the GTAP5inGAMS and the 
GTAP5-EG datasets. A command line argument defines the name of the target 
aggregation. You only need to provide the batch file with the target because the 
target's mapping file defines the source. Before running <B>gtapaggr.bat</B>, 
you must create two files, one defining the sets of commodities, regions and 
primary factors in the target dataset, and another defining the name of the 
source dataset and a correspondence between elements of the source and target. 
The aggregation routine produces a brief report of GDP and trade shares in the 
new dataset. The SET and MAP files for a new dataset are GAMS-readable files 
located in the <B>DEFINES</B> subdirectory. For more information, click <A 
href="http://debreu.colorado.edu/papers/gtap2paper/gtappaper4.html#tth_sEc4.7">here</A>. 

<P><A href="http://debreu.colorado.edu/gtap5/index.html">Back to GTAP5inGAMS 
Homepage</A> 
<P>
<HR>
<A href="http://debreu.colorado.edu/index.html">Back to HomePage</A>
<P><FONT size=tiny>Maintained by <A 
href="mailto:sergey.paltsev@colorado.edu">Sergey Paltsev</A><BR>Last Updated 
06/12/01 <BR><A 
href="mailto:rutherford@colorado.edu">rutherford@colorado.edu</A> 
</FONT></P></BODY></HTML>
